﻿#ifndef DLGFAULT_H
#define DLGFAULT_H

#include <QDialog>

namespace Ui {
class DlgFault;
}

class DlgFault : public QDialog
{
    Q_OBJECT

public:
    explicit DlgFault(const QString& faultCode, QWidget *parent = nullptr);
    ~DlgFault() override;

protected:
    bool eventFilter(QObject *watched, QEvent *event) override;

private:
    void initUI();
    void init();

private:
    Ui::DlgFault *ui;

    // 故障码
    QString m_faultCode;

private slots:
    void onYes();
    void onNo();
};

#endif // DLGFAULT_H
